import request from './request.js';

// 登录
export function getlogin(data) {
	return request({
		url: 'login',
		method: 'POST',
		data
	})
}
// 获取验证码
export function getText() {
	return request({
		url: 'captchaImage',
		method: 'get',
	})
}
// 拿到个人信息
export function getUserinfo() {
	return request({
		url: 'getInfo',
		method: 'get',
	})
}
//退出
export function logout() {
	return request({
		url: 'logout',
		method: 'post'
	})
}
export function postQuote(data) {
	return request({
		url: 'wechat/mini/bb/quote',
		method: 'post',
		data
	})
}
//字典
export function getdict(data) {
	return request({
		url: `system/dict/data/type/${data}`,
		method: 'get',
	})
}
//材料
export function getMianall(data) {
	return request({
		url: `bb/mian/all`,
		method: 'post',
		data
	})
}
//简易冰包 打包体积
export function computedTj(data) {
	return request({
		url: `wechat/mini/bb/volume`,
		method: 'post',
		data
	})
}

export function postQuotejzd(data) {
	return request({
		url: 'wechat/mini/jzd/quote',
		method: 'post',
		data
	})
}

//立体袋 打包体积
export function computedTjjzd(data) {
	return request({
		url: `wechat/mini/jzd/volume`,
		method: 'post',
		data
	})
}
export function bwdall(data) {
	return request({
		url: `bwd/material/all`,
		method: 'post',
		data
	})
}
//报价
export function postQuotebwd(data) {
	return request({
		url: `wechat/mini/bwd/quote`,
		method: 'post',
		data
	})
}
//体积
export function computedTjbwd(data) {
	return request({
		url: `wechat/mini/bwd/volume`,
		method: 'post',
		data
	})
}